/**
 * 模型API设置
 */
import {spring} from "@/config";
import { mock } from "@/config";
const BASEURL:string = '/model'

export const postSearchModel = (param:string|number) => {
    return mock({
        url: BASEURL + `/searchModel`,
        method: 'POST',
        data: param
    })
}

// 搜索模型
export function postModelQueryModel(param:{
    modelName?: string,
    modelEnglishName?:string,
    modelIntro?:string
}){
    return spring({
        url: BASEURL + `/queryModel`,
        method: 'POST',
        data: param
    })
}
// 获取模型
export function postModelSelectAllModel(param:{
    pageNum?:number,
    pageSize?:number
}){
    return spring({
        url: BASEURL + `/selectAllModel`,
        method: 'POST',
        data: param
    })
}
//数据集上传
export function postModelUploadDataForModel(
    param: {
        modelId: number;
        id: number;
        type?: String;
        selTrainFile?: any
    },
    file?:any)
{
    return spring({
        url: BASEURL + `/uploadDataForModel`,
        method: 'POST',
        data: param
    })
}
